<?php
!defined('IAN') && exit('Access Denied');

class Page
{
	/*位移.页面.偏移*/
	public $num;
	public $page;
	public $offset;	
	public function __construct($page=NULL,$offset=NULL,$num=NULl)
	{
		$this->num =  $num;
		$this->page = $page;
		$this->offset = $offset;		
		$this->matchPage(); 
	}
	public function matchPage()
	{
		$url= explode('/',GET_STR);
		switch($url[0])
		{
			case 'index':
				$this->indexPage();
					break;
			case 'business':
				$this->businessPage();
					break;
			case 'happy':
				$this->happyPage();
					break;
			case 'show':
				$this->showPage();
					break;
			case 'server':
				$this->serverPage();
					break;
			case 'friend':
				$this->friendPage();
					break;
			case 'partner':
				$this->partnerPage();
					break;
			case 'help':
				$this->helpPage();
					break;
			case 'user':
				$this->userPage();
					break;		
			default:
				$this->errorPage();
					break;																	
			}
	}
	public function indexPage()
	{
		echo '';
	}
	public function businessPage()
	{
		
	}
	public function happyPage()
	{
		
	}
	public function showPage()
	{
		
	}
	public function serverPage()
	{
		
	}
	public function friendPage()
	{
		
	}
	public function partnerPage()
	{
		
	}	
	public function helpPage()
	{
		
	}
	public function userPage()
	{
		
	}
	public function errorPage()
	{
		
	}
	public function indexStyle()
	{
		
	}
	public function businessStyle()
	{
		
	}
	public function happyStyle()
	{
		
	}
	public function showStyle()
	{
		
	}
	public function serverStyle()
	{
		
	}
	public function friendStyle()
	{
		
	}
	public function partnerStyle()
	{
		
	}
	public function helpStyle()
	{
		
	}	
	public function userStyle()
	{
		
	}
	public function errorStyle()
	{
		
	}			
}

?>